package com.easylinkin.linkappapi.grid.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.easylinkin.linkappapi.grid.entity.GridInfo;
import com.easylinkin.linkappapi.grid.models.dto.GridInfoDTO;
import com.easylinkin.linkappapi.grid.models.dto.GridQrDTO;
import com.easylinkin.linkappapi.grid.models.dto.GridUserDTO;
import org.springframework.web.bind.annotation.RequestParam;
import site.morn.rest.RestMessage;

import java.util.Collection;
import java.util.Map;

/**
 * 网格信息表 服务类
 *
 * @author 
 * @since 2024-05-15
 */
public interface IGridInfoService extends IService<GridInfo> {

    RestMessage addGridInfo(GridInfoDTO gridInfoDTO);

    RestMessage updateGridInfo(GridInfoDTO gridInfoDTO);

    RestMessage queryInfo();

    RestMessage querySelect();

    RestMessage queryInfoById(String id);

    RestMessage configUser(GridUserDTO gridUserDTO);

    RestMessage configQr(GridQrDTO gridQrDTO);

    RestMessage queryGridUserSelect(Integer gridId);

    /**
     * 获取网格信息map
     *
     * @param ids
     * @return Map<Integer, GridInfo>
     * @author kyj
     * @date 2024/5/30 10:02
     */
    Map<Integer, GridInfo> mapByIds(Collection<Integer> ids);

    RestMessage delUser(Integer id);

    RestMessage del(Integer id);
}